/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2022-2022.
 * Description: hkids hkids_path options
 * Author: weiyuchen
 * Create: 2022-11-18
 */

#ifndef HKIDS_PATH_H
#define HKIDS_PATH_H
#include <linux/sched.h>
#include <linux/refcount.h>

struct hkids_path_struct {
	refcount_t ref;
	const char *path;
};

void free_hkids_path(struct hkids_path_struct *hkids_path);
int copy_hkids_path(const unsigned long flags, struct task_struct *tsk);
int update_hkids_path(const struct file *exefile, struct task_struct *tsk);
char *get_hkids_path(struct task_struct *tsk);
void put_hkids_path(const char *process_path);

#endif
